package com.itic.mall.system.finance.makeMoney.service;

import com.itic.mall.mobile.users.livingRate.entity.LivingRateResultVo;
import com.itic.mall.system.finance.makeMoney.persistence.model.FinanceUserMakeMoney;
import com.itic.mall.system.finance.makeMoney.persistence.model.FinanceUserMakeMoneyExample;
import com.itic.mall.system.finance.makeMoney.persistence.model.MakeMoneyVo;

import java.util.List;
import java.util.Map;



public interface FinanceUserMakeMoneyService{


    /**
     * 获取用户总的生钱
     * @param userId
     * @return
     */
    public double getUserTotalMakeMoney(String userId) ;
    /**
     * 获取用户今日生钱
     * @param userId
     * @return
     */
    public double getUserTodayMakeMoney(String userId) ;

    /**
     * 获取用户今日生钱记录
     * @param userId
     * @return
     */
    public FinanceUserMakeMoney getUserTodayFinanceUserMakeMoney(String userId) ;
    /**
     * 分页查看用户最近的生钱记录
     * @param userId
     * @param example
     * @return
     */
    public List<FinanceUserMakeMoney> getUserMakeMoneyLog(String userId,FinanceUserMakeMoneyExample example);
    /**
     * 获取昨天的生钱记录
     * @return
     */
    public List<FinanceUserMakeMoney> findUserMakeYesterday();

    public String addFinanceUserMakeMoney(String userId, LivingRateResultVo livingRateResultVo, double amount, double consume) ;
    
	public List<MakeMoneyVo> getCreateMoneyList() ;

	public List<Map<String, Object>> findInviteMoneyByParams(String userId,int start,int length);

	public int findInviteMoneyCountByParams(String userId);
	
}